Which language defines the logical and physical design of a database (for example, CREATE TABLE)?

Study for the SQL Basics Test. Improve your knowledge with multiple choice questions and detailed explanations. Prepare effectively to master SQL concepts!

Multiple Choice

Which language defines the logical and physical design of a database (for example, CREATE TABLE)?

Explanation:
Defining how data is stored and organized in a database—the schema and its objects like tables, columns, data types, and constraints—is handled by Data Definition Language. CREATE TABLE is a classic DDL statement used to declare a new table and its structure. DDL focuses on the design and layout of the database, not on manipulating the data itself. DML would be used to insert, update, or query data, and DCL controls who can access the data. SQL is the broader language that includes DDL, DML, and DCL, but the action of specifying the database design is performed with DDL.

Defining how data is stored and organized in a database—the schema and its objects like tables, columns, data types, and constraints—is handled by Data Definition Language. CREATE TABLE is a classic DDL statement used to declare a new table and its structure. DDL focuses on the design and layout of the database, not on manipulating the data itself. DML would be used to insert, update, or query data, and DCL controls who can access the data. SQL is the broader language that includes DDL, DML, and DCL, but the action of specifying the database design is performed with DDL.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy