What are three major types of constraints?
Answer / Prateek Keshari
The three major types of constraints used in SQL Server to enforce data integrity are:n- Check Constraint: A constraint that checks if a specified condition is true for each new or updated row.n- Foreign Key Constraint: A constraint that ensures referential integrity by linking two tables and enforcing the relationship between them.n- Primary Key Constraint: A constraint used to define a column or set of columns as the primary key, ensuring uniqueness and integrity of data.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is user-defined function?
What is function of ROLLUP ?
9. Write a query to list a new column with the difference in temp of the cities Delhi and Mumbai, Mumbai and Jammu and soon. Consider the following table : City_id City Temp. 1 delhi 40 2 Mumbai 35 3 Jammu 32 4 Pune 18
1. What are the grouping function in SQL ? 2. If base table of a view deleted means, what will happen while we querying on view ? will give any error ? 3. Difference between DROP, DELETE, TRUNCATE table ? 4. What is constraints and types ? 5. What is max size of nchar & nvarchar ? 6. Define ROLLBACK, COMMIT, SAVE POINT 7. How non-clustered better ? or rank the Clustered, Non-Clustered and Table scan in performance wise 8. Select 10 rows from a table ? 9. Define DML, DDL, DCL, DTL commands ? 10. What is mean by NULL value ? NULL means "" or 0 or undefined ? 11. Default constraints ? 12. Can we have more then primary Key in table ? 13. Type of integrity ? Entity, Referential, Domain ?
How many types of relations are there between dimension and measure group? : sql server analysis services, ssas
Can we insert data into a view?
A user is a member of the public role and the sales role. The public role has select permission on all the tables. The sales role does not have select permission on some of the tables will the user be able to select from all tables?
What is the syntax to execute the sys.dm_db_missing_index_details?
Differentiate between a local and a global temporary table?
What is log ldf?
Why should one not prefix user stored procedures with ‘sp_’?
Write query to return all rows sql?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)