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
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Fetch a pattern of data in SQL Server
WhatsApp
Venkatesan Jayakantham
12y
2.6
k
0
0
25
Blog
Fetch a pattern of data:
Consider, If you want to fetch a specific pattern of data like I want to fetch customerkey which are able to divide by 100. A pattern of divide of 100 values.
In that case, the query created is as below.
SELECT TOP 1000 [CustomerKey]
,[GeographyKey]
,[CustomerAlternateKey]
,[Phone]
,[DateFirstPurchase]
,[CommuteDistance]
FROM [dbo].[DimCustomer]
where (CustomerKey % 100 =0)
Cheers,
Venkatesan Prabu .J
www.kaashivinfotech.com
Fetch a pattern of data in SQL Server
Up Next
Convert Data Table to XML in SQL Server
Ebook Download
View all
Basic SQL Queries
Read by 19.4k people
Download Now!
Learn
View all
Membership not found