Most voted questions in Database

0 votes
0 answers

What is the definition of cardinality in SQL?

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

Feb 18, 2022 in Database by Neha
• 9,060 points
616 views
0 votes
1 answer

How to insert date values into table?

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

Feb 18, 2022 in Database by Vaani
• 7,020 points
2,574 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, 2022 in Database by Vaani
• 7,020 points
579 views
0 votes
1 answer

Function vs. Stored Procedure in SQL Server

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

Feb 17, 2022 in Database by Neha
• 9,060 points

edited Feb 17, 2022 by Neha 18,402 views
0 votes
1 answer

SQL WITH clause example

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

Feb 17, 2022 in Database by Neha
• 9,060 points
266 views
0 votes
1 answer

Insert date value in SQL table

Always use ANSI default string literal format for date i.e. YYYY-MM-DD like below. INSERT ...READ MORE

Feb 17, 2022 in Database by Neha
• 9,060 points
164,332 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, 2022 in Database by Vaani
• 7,020 points
666 views
0 votes
1 answer

Difference between datetime and timestamp in sqlserver?

Timestamp is a synonym for rowversion, according ...READ MORE

Feb 16, 2022 in Database by Vaani
• 7,020 points
4,306 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, 2022 in Database by Vaani
• 7,020 points
1,254 views
0 votes
1 answer

Is SQL syntax case sensitive?

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

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

Syntax of for-loop in SQL Server

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

Feb 15, 2022 in Database by Neha
• 9,060 points
718 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, 2022 in Database by Neha
• 9,060 points
435 views
0 votes
1 answer

SQL error "ORA-01722: invalid number"

When an effort is made to convert ...READ MORE

Feb 15, 2022 in Database by Neha
• 9,060 points
2,631 views
0 votes
1 answer

What is the definition of cardinality in SQL?

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

Feb 15, 2022 in Database by Neha
• 9,060 points
1,566 views
0 votes
0 answers

Selecting COUNT(*) with DISTINCT

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

Feb 14, 2022 in Database by Neha
• 9,060 points
313 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, 2022 in Database by Vaani
• 7,020 points
2,343 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, 2022 in Database by Vaani
• 7,020 points
273 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, 2022 in Database by Vaani
• 7,020 points
999 views
0 votes
1 answer

ORACLE LIVE SQL IMPORT CSV DATA (live oracle sql)

Convert CSV to SQL http://www.convertcsv.com/csv-to-sql.htm This programme may be ...READ MORE

Feb 11, 2022 in Database by Neha
• 9,060 points
7,642 views
0 votes
1 answer

NOT IN vs NOT EXISTS

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

Feb 11, 2022 in Database by Neha
• 9,060 points
373 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, 2022 in Database by Neha
• 9,060 points
1,120 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, 2022 in Database by Vaani
• 7,020 points
291 views
0 votes
1 answer

Inserting multiple rows in a single SQL query?

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

Feb 10, 2022 in Database by Vaani
• 7,020 points
808 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, 2022 in Database by Vaani
• 7,020 points
281 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, 2022 in Database by Vaani
• 7,020 points
592 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, 2022 in Database by Neha
• 9,060 points
5,950 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, 2022 in Database by Neha
• 9,060 points
531 views
0 votes
1 answer

SQL Server: PARTITION BY vs GROUP BY

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

Feb 9, 2022 in Database by Neha
• 9,060 points
2,214 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, 2022 in Database by Neha
• 9,060 points
1,049 views
0 votes
1 answer

What are DDL and DML?

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

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

SQL Server CASE .. WHEN .. IN statement

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

Feb 8, 2022 in Database by Vaani
• 7,020 points
479 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, 2022 in Database by Vaani
• 7,020 points
1,316 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, 2022 in Database by Vaani
• 7,020 points
564 views
0 votes
1 answer

How to take user input in livesql.oracle.com in PLSQL?

To create a procedure with a parameter ...READ MORE

Feb 7, 2022 in Database by Vaani
• 7,020 points
3,765 views
0 votes
1 answer

SQL Switch/Case in 'where' clause

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

Feb 7, 2022 in Database by Vaani
• 7,020 points
1,104 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, 2022 in Database by Neha
• 9,060 points
1,127 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, 2022 in Database by Neha
• 9,060 points
1,660 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, 2022 in Database by Neha
• 9,060 points
8,382 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, 2022 in Database by Neha
• 9,060 points
4,465 views
0 votes
2 answers

Case in Select Statement

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

Feb 4, 2022 in Database by Neha
• 9,060 points
388 views
0 votes
1 answer

What is a stored procedure?

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

Feb 4, 2022 in Database by Neha
• 9,060 points
805 views
0 votes
0 answers

How do I UPDATE from a SELECT in SQL Server?

INSERT INTO Table (col1, col2, col3) SELECT col1, ...READ MORE

Feb 4, 2022 in Database by Vaani
• 7,020 points
329 views
0 votes
1 answer

What is an index in SQL?

An index is used to speed up ...READ MORE

Feb 3, 2022 in Database by Vaani
• 7,020 points
436 views
0 votes
1 answer

How do I UPDATE from a SELECT in SQL Server?

MERGE INTO YourTable T USING ...READ MORE

Feb 3, 2022 in Database by Vaani
• 7,020 points
600 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, 2022 in Database by Vaani
• 7,020 points
1,309 views
0 votes
0 answers

how to create a SQL table?

Feb 1, 2022 in Database by Neha
• 9,060 points
235 views
0 votes
0 answers

what does sql stand for?

Feb 1, 2022 in Database by Neha
• 9,060 points
155 views
0 votes
0 answers

How to add constraints in SQL?

Jan 31, 2022 in Database by Neha
• 9,060 points
171 views
0 votes
0 answers

how to use sql server management studio

Jan 31, 2022 in Database by Neha
• 9,060 points
194 views
0 votes
1 answer

Updating multiple records in this year with information held in previous year.

Hello, For your query you can refer this:https://www.plus2net.com/sql_tutorial/sql_update.php Hope ...READ MORE

Nov 9, 2020 in Database by Niroj
• 82,880 points
637 views