What are constraints? Explain different types of
constraints?
Answer Posted / hari
Constraint : To Restrict the voilation of irrelegular data
and maintain data integrity.
Primary key
Unique Key
NotNull
Forigen Key
Check
| Is This Answer Correct ? | 73 Yes | 45 No |
Post New Answer View All Answers
How to select some specific columns from a table in a query in ms sql server?
What is master database? : SQL Server Architecture
I have all the primary data files, secondary data files as well as logs. Now, tell me can I still restore the database without having a full backup? : sql server database administration
Explain table valued parameters in sql server? Why tvp used?
How to check if a table is being used in sql server?
What is t-sql script to take database offline – take database online.
What is use of attribute hierarchy ordered ? : sql server analysis services, ssas
What stored by the master? : sql server database administration
What is @@error in sql?
This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?
Explain how dts is used to extract, transform and consolidate data?
List some case manipulation functions in sql?
List all the types of user-defined functions?
How to modify the underlying query of an existing view?
What is public role in sql server?