Trending questions in Database

0 votes
0 answers

What is "with (nolock)" in SQL Server?

Can someone explain the ramifications of using ...READ MORE

Feb 22 in Database by Vaani
• 7,020 points
95 views
0 votes
1 answer

What is the Oracle PL/SQL "--+rule"?

The answer is in the material you ...READ MORE

Feb 23 in Database by Neha
• 8,560 points
29 views
0 votes
1 answer

How to convert DateTime to VarChar

With Microsoft Sql Server: -- -- Create test case -- DECLARE ...READ MORE

Feb 23 in Database by Neha
• 8,560 points
27 views
0 votes
1 answer

What is the candidate key in SQL Server?

A Candidate Key is any column or ...READ MORE

Feb 23 in Database by Neha
• 8,560 points
25 views
0 votes
1 answer

SQL count rows in a table

A fast way of doing this would ...READ MORE

Feb 21 in Database by Neha
• 8,560 points
82 views
0 votes
1 answer

What is "with (nolock)" in SQL Server?

Using READ UNCOMMITED as a transaction isolation ...READ MORE

Feb 21 in Database by Neha
• 8,560 points
60 views
0 votes
1 answer

Change default 'delimiters' in excel

Select a non-empty cell. Do Data -> Text ...READ MORE

Feb 21 in Database by gaurav
• 12,980 points
39 views
0 votes
1 answer

Merging Two excel files as two sheets in one workbook in java

Basically for this, you need to create ...READ MORE

Feb 21 in Database by gaurav
• 12,980 points
38 views
0 votes
0 answers

SQL: Display Full Name + Filter By Subject

Feb 22 in Database by Neha
• 8,560 points
20 views
0 votes
1 answer

Group by Sum in Excel

It is very easy and you can ...READ MORE

Feb 21 in Database by gaurav
• 12,980 points
26 views
0 votes
1 answer

How can I define a composite primary key in SQL?

A primary key is unique and it ...READ MORE

Feb 21 in Database by Vaani
• 7,020 points
69 views
0 votes
1 answer

How do I use ROW_NUMBER()?

You can use the query as: SELECT COUNT(*) ...READ MORE

Feb 21 in Database by Vaani
• 7,020 points
41 views
0 votes
1 answer

Function vs. Stored Procedure in SQL Server

Functions are calculated values that cannot make ...READ MORE

Feb 17 in Database by Neha
• 8,560 points

edited Feb 17 by Neha 144 views
0 votes
0 answers

What is the definition of cardinality in SQL?

My book definition of Database Systems does ...READ MORE

Feb 18 in Database by Neha
• 8,560 points
121 views
0 votes
1 answer

How to insert date values into table?

You have to convert the literal to ...READ MORE

Feb 18 in Database by Vaani
• 7,020 points
76 views
0 votes
1 answer

What is the definition of cardinality in SQL?

Cardinality is defined as the "number of ...READ MORE

Feb 15 in Database by Neha
• 8,560 points
151 views
0 votes
1 answer

What is the difference between HAVING and WHERE in SQL?

HAVING: It is used to check after the aggregation ...READ MORE

Feb 17 in Database by Vaani
• 7,020 points
42 views
0 votes
1 answer

What is the difference between SQL, PL-SQL and T-SQL?

SQL SQL is the standard language for relational ...READ MORE

Feb 16 in Database by Vaani
• 7,020 points
82 views
0 votes
1 answer

Is SQL syntax case sensitive?

The SQL keywords (SELECT, FROM, WHERE, etc.) ...READ MORE

Feb 16 in Database by Vaani
• 7,020 points
80 views
0 votes
1 answer

Which SQL query is used to find Nth highest salary from a salary table

If you want to find nth Salary ...READ MORE

Feb 14 in Database by Vaani
• 7,020 points
152 views
0 votes
1 answer

SQL WITH clause example

Oracle introduced the SQL WITH clause in ...READ MORE

Feb 17 in Database by Neha
• 8,560 points
12 views
0 votes
1 answer

How do I perform an IF THEN statement in an SQL SELECT?

The CASE statement is the closest to IF in ...READ MORE

Feb 16 in Database by Vaani
• 7,020 points
58 views
0 votes
1 answer

Number of rows affected by an UPDATE in PL/SQL

You can try using the following query: SELECT ...READ MORE

Feb 14 in Database by Vaani
• 7,020 points
90 views
0 votes
1 answer

Syntax of for-loop in SQL Server

TSQL has no for-loop, we have only ...READ MORE

Feb 15 in Database by Neha
• 8,560 points
28 views
0 votes
1 answer

How to do version control for SQL Server database?

Not only can you compare objects at ...READ MORE

Feb 15 in Database by Neha
• 8,560 points
17 views
0 votes
1 answer

Should I use != or <> for not equal in T-SQL?

Most of the existing databases support != Databases that ...READ MORE

Feb 14 in Database by Vaani
• 7,020 points
44 views
0 votes
0 answers

Selecting COUNT(*) with DISTINCT

In SQL Server 2005, I have a ...READ MORE

Feb 14 in Database by Neha
• 8,560 points
78 views
0 votes
1 answer

How to generate the statement CREATE TABLE for an existing table in postgreSQL?

Generate table creation statement for an existing ...READ MORE

Feb 9 in Database by Neha
• 8,560 points
183 views
0 votes
1 answer

SQL Server: PARTITION BY vs GROUP BY

To understand the differences between GROUP BY ...READ MORE

Feb 9 in Database by Neha
• 8,560 points
183 views
0 votes
1 answer

NOT IN vs NOT EXISTS

In my opinion, the most efficient way ...READ MORE

Feb 11 in Database by Neha
• 8,560 points
90 views
0 votes
1 answer

Please name some online websites to compile and run PL/SQL?

For executing Oracle SQL queries and PL/SQL ...READ MORE

Feb 11 in Database by Neha
• 8,560 points
70 views
0 votes
1 answer

Ordering by the order of values in a SQL IN() clause

Use MySQL's FIELD() function: SELECT name, description, ... FROM ... WHERE id ...READ MORE

Feb 4 in Database by Neha
• 8,560 points
342 views
0 votes
1 answer

Inserting multiple rows in a single SQL query?

In SQL Server 2008, multiple rows can ...READ MORE

Feb 10 in Database by Vaani
• 7,020 points
41 views
0 votes
1 answer

What are DDL and DML?

SQL Commands have subcategories like DDL, DML, DCL ...READ MORE

Feb 8 in Database by Vaani
• 7,020 points
110 views
0 votes
1 answer

What do you mean by Clustered and Non-Clustered index?

The rows in a clustered index are ...READ MORE

Feb 10 in Database by Vaani
• 7,020 points
26 views
0 votes
1 answer

How to delete duplicate rows in SQL Server?

CTEs and ROW_NUMBER can be combined together which will ...READ MORE

Feb 10 in Database by Vaani
• 7,020 points
34 views
0 votes
1 answer

How to rename a column in a database table using SQL?

For SQL Server, use sp_rename USE AdventureWorks; GO EXEC sp_rename 'Customers.CustomerTerritory.TerritoryID', ...READ MORE

Feb 9 in Database by Neha
• 8,560 points
66 views
0 votes
1 answer

How Can I use "Date" Datatype in sql server?

There's problem in all of them and ...READ MORE

Feb 9 in Database by Neha
• 8,560 points
67 views
0 votes
1 answer

SQL Group By with an Order By

In any version of MySQL, you can use the aggregate ...READ MORE

Feb 10 in Database by Vaani
• 7,020 points
23 views
0 votes
1 answer

Convert Rows to columns using 'Pivot' in SQL Server

You can use the PIVOT function to ...READ MORE

Feb 8 in Database by Vaani
• 7,020 points
46 views
0 votes
1 answer

How would I find the second largest salary from a employee table? [closed]

To find the 2nd largest salary from ...READ MORE

Feb 8 in Database by Vaani
• 7,020 points
29 views
0 votes
1 answer

SQL Server CASE .. WHEN .. IN statement

Two forms of CASE statements are getting ...READ MORE

Feb 8 in Database by Vaani
• 7,020 points
27 views
0 votes
1 answer

SQL Switch/Case in 'where' clause

Without a case statement: SELECT column1, ...READ MORE

Feb 7 in Database by Vaani
• 7,020 points
60 views
0 votes
1 answer

How to drop all tables from a database with one SQL query?

Use the INFORMATION_SCHEMA.TABLES view to get the ...READ MORE

Feb 4 in Database by Neha
• 8,560 points
114 views
0 votes
1 answer

What is a stored procedure?

A stored procedure is a set of ...READ MORE

Feb 4 in Database by Neha
• 8,560 points
110 views
0 votes
2 answers

Case in Select Statement

I think these could be helpful for ...READ MORE

Feb 4 in Database by Neha
• 8,560 points
53 views
0 votes
1 answer

SQL Server replaces LEFT JOIN for LEFT OUTER JOIN in view query

You are getting the joins confused and ...READ MORE

Feb 4 in Database by Neha
• 8,560 points
89 views
0 votes
1 answer

LEFT JOIN vs. LEFT OUTER JOIN in SQL Server

At the top level there are mainly ...READ MORE

Feb 4 in Database by Neha
• 8,560 points
88 views
0 votes
1 answer

two back slash in SQL procedure with Regular expression

It's the escape prefix in regular expressions: ...READ MORE

Feb 2 in Database by Vaani
• 7,020 points
164 views
0 votes
1 answer

How do I UPDATE from a SELECT in SQL Server?

MERGE INTO YourTable T USING ...READ MORE

Feb 3 in Database by Vaani
• 7,020 points
54 views