C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
2
Reply
How to filter records of table in SQL SERVER?
Akhil Joshi
13y
2.1k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
We can filter records based on the where clause.SELECT COL1,COL2 from TABLE WHERE COL1 = 'Condition';When using grouping clause to restrict rows, you can querySELECT SUM(COL1),COL2 from TABLE WHERE COL1= 'Condition' group by COL2;You can restrict record groups using the having clause some thing like this, SELECT SUM(COL1),COL2 from TABLE WHERE COL1= 'Condition' group by COL2 having SUM(COL1) > 20;
Shankar M
13y
0
Select fields1, field2...fieldn from table_name where field =
Romzy Zu
13y
0
Give the query of getting last two records from the table in SQL SERVER?
How to delete duplicate records based on single column from a table?
Message