Write a stored procedure for emplpoyee and department table to get DeptName which having no employee. Table Structure- Emp-Emp_Id,Emp_Name,Dept_id Dept-Dept_Id,Dept_Name
WHAT IS THE DIFFERENCE BETWEEN CANDIDATE KEY ,COMPOSITE KEY AND PRIMARY KEY. THAN U.1 4381
System variable and temporary variables896
How should i optimize the time for execution of stored procedure having single input and many output from the different tables?740
what are the critical issues you have resloved in your company
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
What is the difference between NOROW and LOCKROW?
what exactly sql injuction.how to overcome.....
How much memory that we are using in Logshipping Concept?
Explain Capacity planning to create a database? and how to monitor it?
What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.
how to overcome kernel isssues
application server is slow what may be the problem
If user is owning any SQL Objects, can we drop that user
How retrieve field names from the table in SQL through JAVA code?
how to do partition in sqlserver
how can you attach more than 20 ldf files in sql server
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?