About 975,000 results
Open links in new tab
  1. SQL CREATE DATABASE Statement - W3Schools

    The CREATE DATABASE statement is used to create a new SQL database. The following SQL statement creates a database called "testDB": Tip: Make sure you have admin privilege before …

  2. How to create a Date in SQL Server given the Day, Month and …

    Feb 23, 2016 · In SQL Server 2012+, you can use DATEFROMPARTS(): DECLARE @Year int = 2016, @Month int = 10, @Day int = 25; SELECT DATEFROMPARTS (@Year, @Month, …

  3. SQL Cheat Sheet ( Basic to Advanced) - GeeksforGeeks

    Mar 12, 2025 · It includes fundamental SQL commands like CREATE DATABASE and DROP DATABASE, data manipulation commands such as INSERT INTO and UPDATE, as well as …

  4. CREATE DATABASE (Transact-SQL) - SQL Server | Microsoft Learn

    You can use the CREATE DATABASE statement to create a read-only, static view, a database snapshot of the source database. A database snapshot is transactionally consistent with the …

  5. How to create start date and end date with SQL?

    Jan 1, 2012 · How to create a start date and end date according to month and year format? For Example st = 02/2012 Select * from table where dates between 01/02/2012 and 29/02/2012

  6. SQL Server Create Database Examples

    Dec 11, 2019 · We’ll look at a few examples starting with the simplest and working up slightly in complexity. Versions used here are: Let’s start with the simplest possible CREATE …

  7. SQL CREATE DATABASE | GeeksforGeeks

    Apr 12, 2025 · The CREATE DATABASE Command is used to create a new database within a SQL based Database Management System (DBMS) such as MySQL, PostgreSQL, or SQL …

  8. SQL CREATE DATABASE Statement (With Examples) - Programiz

    The SQL CREATE DATABASE statement is used to create databases. In this tutorial, you will learn about the SQL CREATE DATABASE statement in SQL with the help of examples.

  9. How to Create a Date Table or a SQL Server Calendar Table

    In this sql article, I'd like to share the t-sql codes for creating dates sql table having date records between a given date range. I believe many sql developers or sql administrators have built at …

  10. MySQL CREATE DATABASE - Creating a New Database in …

    To create a new database in MySQL, you use the CREATE DATABASE statement. The following illustrates the basic syntax of the CREATE DATABASE statement: In this syntax: First, specify …

Refresh