I'm trying to get the first BEG_PERIOD date immediately after the last but one record of X (DEF_ENDING) of each user (USER_ID). So I have this: ...
I'm trying to get the first BEG_PERIOD date immediately after the last but one record of X (DEF_ENDING) of each user (USER_ID). So I have this: ...
Suppose that my SQL table has 4 columns: Product, Date, Net_Income, and Cumulative_Net_Income. I want to add a fifth column that shows the first date, ...
I am using the following MSSQL query to count timestamps within a table. Each row stands for one transaction (one car washed) at my carwash company. ...
I’m dealing with some serialized data fetched from an SQL Server database and that looks like this : Any idea which format is this ? And is there a ...
Say I have a SQL 2008 Database, which contains the inventory data for my business. I need to trigger a python script, once an item qty is changed. Thi ...
We have real old server running DTS packages and SSMS 2008 or older. We need to transfer our DB to new server that can also run PHP applications. What ...
This code is taking a significant amount of time to run. It's returning every single transaction within the date range but I just need to know if the ...
Using SQL Server Management Studio 18, I'm trying to modify the below query to return all tables and views for each database on the server, along with ...
Batch Number ITEM Number Qty 00980001 0098 100 00980002 0098 225 ...
I try to sum value in pervious rows, I want to sum the pervious quantity "Stock on hand" and put the result in each row, example It ...
I have 2 tables that I'm joining: featured_products products I need to join both tables but keep the order in which they appear in the featured ...
I try to convert this procedure to PIVOT, but I can't. Does anyone have a solution to help? I have a table has ItemID, StoreID,Stock I want to convert ...
I have three tables in SQL Server TABLE_A - contains 500 rows TABLE_B - contains 1 million rows TABLE_C - contains 1 million rows I want to ...
This question was migrated from Stack Overflow because it can be answered on D ...
User code I used the code to display the results Actual results desired results I want to delete the color code along with the brackets ...
How can I select date superior 4 mounth for date of today enter image description here ...
I want to find the tables from all the databases that references a column in a table in one of the database. Can anyone help me here? Not sure how to ...
I have a simple stored procedure that takes one parameter and has two output parameters. I want to call this stored procedure in Access VB and read th ...
I have an Azure SQL Server resource for which I'm the Azure AD admin. I have provided the resource access "Contributor" to another user who cannot ...
This is our output: category Rev trandate BankAccNo Fee Credit Cards 1 01-09-2 ...