TSQL Challenge 46 - Remove leading occurrences of the first character
This challenge is a slightly enhanced version of the ‘remove leading zeros’ problem
2010-12-27
1,741 reads
This challenge is a slightly enhanced version of the ‘remove leading zeros’ problem
2010-12-27
1,741 reads
This challenge involves evaluating mathematical expressions presented using Roman Numerals and return the result of each expression.
2010-12-13
1,693 reads
The first part of your job is to identify the unique color combinations of products and the second part is to identify the products that have the given color combination.
2010-11-29
1,382 reads
This challenge involves writing a logic to identify incomplete segments and missing elements in an electronic data integration file exchanged between two applications.
2010-11-16
881 reads
This challenge involves writing a logic to change the column position of values in the output based on the presence and absence of other values on each output row.
2010-11-01
2,872 reads
This challenge involves extracting email addresses from a table that contains text data downloaded from various websites.
2010-10-18
2,274 reads
This challenge involves converting numeric values from binary format to hexadecimal format.
2010-10-04
1,670 reads
Jacob Sebastian takes a look at some different ways to write your WHERE clauses. A good basic article for those starting to work with T-SQL.
2010-07-30 (first published: 2008-02-27)
81,573 reads
This article presents a generic function that makes it easy to query XML documents
2010-06-30
12,341 reads
This article from MVP Jacob Sebastian looks at the modify method for changing an XML document.
2010-03-18
10,345 reads
By Steve Jones
I’ve become an EV guy. I was talking with a friend who was selling...
In a previous post I talked about how we can use T-SQL Snapshot Backups...
By Steve Jones
A bit of a photo dump, but a few fun memories for me from...
Comments posted to this topic are about the item How to connect your SQL...
Comments posted to this topic are about the item Finding the Black Friday Sales...
Earlier this week I had an issue with a Win 8.1 laptop I was...
We are tracking sales for Black Friday today. We have these aggregate values:
CREATE TABLE dbo.BlackFridaySales
(
Product NVARCHAR(50) NOT NULL PRIMARY KEY,
Units INT NOT NULL
);
INSERT INTO dbo.BlackFridaySales (Product, Units)
VALUES (N'55" TV', 900),
(N'Air Fryer', 500),
(N'Noise-Cancel Headphones', 500),
(N'Robot Vacuum', 300);
I'm trying to get a ranking of the sales that would return 1, 2, 2, 3 for the product levels. Which query does this? See possible answers