Quantcast
Channel: SQL – TAR Solutions
Browsing latest articles
Browse All 10 View Live

Remove the time from a datetime in SQL

There are a few ways to remove the time from a datetime in SQL. This article descibes a couple of them. This is the code: DATEADD(dd,0,DATEDIFF(dd,0,DateToRemoveTime)) I’ll explain how this works as it...

View Article



SQL Calculating the row number

To count the row number in SQL there’s a useful little in built SQL function you need to use, row_number() This enables you to number all rows and restart the row numbering part way a dataset. Note...

View Article

Image may be NSFW.
Clik here to view.

Link Tableau to SSRS

I’ve had a few visitors coming to the site searching for how to link Tableau to SSRS so I thought I’d write a quick post on how I’ve done it. You need to make use of the URL action in Tableau, which...

View Article

Remove a line feed / carriage return from a string

If you ever have to deal with long strings of freetext it’s likely you’ve come across random line feed and carriage returns in that text causing you headaches when it comes to manipulating the text....

View Article

SQL split string by a delimiter to create new rows

Ever need to split a delimited string in SQL, creating new records? For example you could have a table called Users: Country User UK Bob|Fred|Bill ... Read more Source

View Article


SQL create a delimited string from a flat file

Recently I wrote a post on how to split a delimited string in SQL. Now I need to do the reverse and take the flat ... Read more Source

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images