This is our output: category Rev trandate BankAccNo Fee Credit Cards 1 01-09-2 ...
This is our output: category Rev trandate BankAccNo Fee Credit Cards 1 01-09-2 ...
I have below dataset I'm looking for an SQL server query to get below output that will calculate previous sales based on previous draw numb ...
I have a table that looks like this id name CreatedDate 1 test1 2014-06-30 09:00:00 ...
There is a TEXT_TRANS table which contains the translation of a specific word and they contain same textid but different languageid. Suppose there is ...
I'm trying to work on a stored procedure that is somewhat tricky, let's say I have Table_1 with this data: I also have a lookup table that looks li ...
While deploying the database on the Azure server, I get an error as: The database compatibility level '15' is not within the supported range of 80 ...
I've written this to loop through each database on a server, collecting the statistics for each table and storing them in a temp table. Eventually, I' ...
I have a table having data like And I want to pivot category(which can increase/decrease) column with period column and also want sold_amt, purchas ...
I can get exact 3 years of value with the below code (from 01/24/2018 - 01/25/2021) But I'm expecting the results should be from 01/01/2018 - 01/25 ...
I very much appreciate your help on this one, would really like for someone to tell me why Select Distinct and UNION ALL errors and it appears that 'T ...
I've been pulling my hair out in an attempt to find a way of updating some entries by comparing the dates from previous rows. Here's a sample of the ...
I run this query: And get this result: Msg 512, Level 16, State 1, Line 16 Subquery returned more than 1 value. This is not permitted when the ...
From my local computer I am using SQL Server 2016 Management Studio client (SSMS) to connect to a SQL Server installed on a remote computer. I connect ...
I have a stored proc that gets called with a parameter. I would like to check what the PARAM @Value is, and depending on the value, I want to add a pa ...
I have 2 tables i want to compare the data and insert the difference into 3rd table for example i have Now i want to insert data from Table A whic ...
I have a situation please help me out. I have to create multiple sheet in one excel file with different queries. Like i have to check if the particula ...
I have a table 1: Then, I have string 'ABC~XYZ~123'. I need to split this string into each word by using SQL: The return is table2 I want to ...
I have a query that is merging 2 tables. Table 1 has many columns, and may eventually expand. Table 2 also has several columns, but I will be performi ...
I have a column for weight in lb and oz together For example we have data like this in the column: Can someone help me to convert the lb+oz toget ...
I have a stored procedure that I have to use pagination on in order to get records for a grid. The query works fine for a single table however once I ...