Trending questions in Database

0 votes
0 answers

What's the difference between a temp table and table variable in SQL Server?

We can build temp tables in SQL ...READ MORE

Feb 25, 2022 in Database by Vaani
• 7,070 points
625 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,020 points
1,481 views
0 votes
1 answer

SQL count rows in a table

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

Feb 21, 2022 in Database by Neha
• 9,020 points
744 views
0 votes
1 answer

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

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

Feb 21, 2022 in Database by Neha
• 9,020 points
699 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,070 points
890 views
0 votes
1 answer

Converting HTML to Excel? [closed]

Upload html-file(s) Select files from Computer, Google ...READ MORE

Feb 23, 2022 in Database by gaurav
• 23,260 points
586 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,020 points
911 views
0 votes
0 answers

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

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

Feb 22, 2022 in Database by Vaani
• 7,070 points
626 views
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,020 points
784 views
0 votes
0 answers

Duckworth-Lewis-Stern calculator to calculate the revised target

With the Cricket World Cup going on, ...READ MORE

Feb 24, 2022 in Database by Edureka
• 13,690 points
525 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,070 points
776 views
0 votes
1 answer

Group by Sum in Excel

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

Feb 21, 2022 in Database by gaurav
• 23,260 points
584 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,070 points
1,039 views
0 votes
0 answers

SELECT.... WHERE... OR

Is there a method to choose data ...READ MORE

Feb 25, 2022 in Database by Vaani
• 7,070 points
400 views
0 votes
1 answer

How do I use ROW_NUMBER()?

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

Feb 21, 2022 in Database by Vaani
• 7,070 points
543 views
0 votes
0 answers

Select .... where .... OR?

Is there a method to choose data ...READ MORE

Feb 24, 2022 in Database by Hemant
• 140 points
363 views
0 votes
0 answers

Testing question and answer

This category discusses everything related to SQL/ ...READ MORE

Feb 24, 2022 in Database by anonymous
• 140 points
352 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,070 points
967 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,020 points
637 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,070 points
921 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,070 points
814 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,020 points
1,054 views
0 votes
0 answers

SQL: Display Full Name + Filter By Subject

Feb 22, 2022 in Database by Neha
• 9,020 points
295 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,020 points
441 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,020 points
759 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,020 points
490 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,020 points
583 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,070 points
431 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,070 points
686 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,070 points
573 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,070 points
819 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,020 points
729 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,070 points
493 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,070 points
675 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,070 points
545 views
0 votes
0 answers

how to create a SQL table?

Feb 1, 2022 in Database by Neha
• 9,020 points
443 views
0 votes
0 answers

how to use sql server management studio

Jan 31, 2022 in Database by Neha
• 9,020 points
344 views
0 votes
0 answers

How to add constraints in SQL?

Jan 31, 2022 in Database by Neha
• 9,020 points
332 views
0 votes
0 answers

what does sql stand for?

Feb 1, 2022 in Database by Neha
• 9,020 points
251 views
0 votes
2 answers

Write a SQL query to find the names of employees that begin with ‘S’

Select ename From emp Where ename like"s%"; READ MORE

Oct 7, 2021 in Database by anonymous
27,101 views
0 votes
2 answers

Difference between primary key a composite key

candidate  key: It is the collection of ...READ MORE

Oct 14, 2020 in Database by anonymous
31,285 views
0 votes
3 answers

MySQL "Could not create connection to database serve" error

Pls check that you have MySQL server ...READ MORE

Jul 3, 2020 in Database by anonymous
29,897 views
0 votes
2 answers

How to select the nth row in a SQL database table?

SELECT * FROM ( SELECT ID, NAME, ROW_NUMBER() ...READ MORE

Apr 23, 2020 in Database by anand
• 140 points
26,264 views
0 votes
1 answer

Error:Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Arabic_CI_AS" in the equal to operation.

Hello @kartik, You can resolve the issue by ...READ MORE

May 13, 2020 in Database by Niroj
• 82,840 points
20,543 views
0 votes
1 answer

MySQL Error: : 'Access denied for user 'root'@'localhost'

Hello @kartik, I did this to set my ...READ MORE

May 4, 2020 in Database by Niroj
• 82,840 points
18,422 views
0 votes
1 answer

/opt/mssql/bin/mssql-conf: command not found in Ubuntu 20.04

Hello @netwell, You need to have at least 3.25 ...READ MORE

Oct 19, 2020 in Database by Niroj
• 82,840 points
6,744 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,840 points
841 views
0 votes
1 answer

How does Docker CLI connects with DB?

To connect Docker CLI with a Database, ...READ MORE

Oct 19, 2020 in Database by lyana
803 views
0 votes
0 answers

How to Secure Postgres in cilium like Cassanda.

I want help in writing  code in ...READ MORE

Oct 14, 2020 in Database by Aryan
• 190 points
891 views
0 votes
1 answer

ERROR 1006 (HY000): Can't create database 'test' (errno: 2) in mysql

Hi@akhtar, You have to change the permissions or ...READ MORE

Apr 14, 2020 in Database by MD
• 95,460 points
8,173 views