Viewing 15 posts - 271 through 285 (of 3,479 total)
If you have a Calendar table (or a table valued function to return all the dates between the start date and end date), then you can outer join your data...
October 31, 2022 at 6:55 pm
Not much to go on here. Are the databases radically different (no similar tables)? Or do they have lots of similar / same tables?
one way of doing this is to...
October 27, 2022 at 10:52 pm
if a customer dont have any orders for continous 100 day period then the account consider as inactive (for the month of 100day addition to latest CustOrderDay). if no order...
October 25, 2022 at 3:05 am
Then create the queries you need in your SQL database, and then use SSIS to run the queries and output the data to whatever format and location you want. then...
October 25, 2022 at 2:54 am
you could let a user connect to SQL Server from Access and import a bunch of data from stored procedures, views, or tables (or or or), or let someone with...
October 25, 2022 at 2:25 am
SELECT ListValue,...
FROM <table>
WHERE ListNumber = @ListNumber ;
So the table would be something like
CREATE TABLE ListValue (ListNumber INT, ListValue VARCHAR(10));
GO
INSERT INTO ListValue VALUES(1, 'A'),(1,'B'), (2,'C'),(2,'D');
October 23, 2022 at 7:05 am
Didn't Steve answer your question? Seemed pretty clear to me. you just overwrite the ID = 1234 with another value.
insert into Student (studentid,
StudentName,
StudentKey,
StudentAccKey,
StartDate,
EndDate)
SELECT 9786,
StudentName,
StudentKey,
StudentAccKey,
StartDate,
EndDate
FROM Student std
join casetype...
October 12, 2022 at 12:31 am
Sounds like a job for EXISTS (SELECT 1 FROM...) AND NOT EXISTS (...)
October 6, 2022 at 1:57 pm
Then you could do something like create a stored procedure to get the data you want, then use SSIS to export it to an excel file, then schedule it to...
September 30, 2022 at 5:14 pm
One way to do it is to create a stored procedure that returns just the rows and columns you want, and then call that from Excel.
you just specify the source...
September 30, 2022 at 4:55 pm
Something like this? (Well, it's a starting point!)
Oh right... nearly forgot MATCHED is a T-SQL keyword, and so is USER_ID
use tempdb;
go
create table matched
(match_id int identity not null...
September 29, 2022 at 10:47 pm
You're joking, right? This is database 101 stuff.
* How many days of data do we have ? DISTINCTCOUNT(date) from your data table?
* Counts of rows by each day
SELECT c.date, COUNT(*)...
September 21, 2022 at 11:13 pm
If you're going to consume this in SSRS, I'd write it in a stored procedure.
Look at windowing functions. You can expand the time window....
SELECT DimDate.Date, AVG([Amount]) OVER (PARTITION BY Date...
September 20, 2022 at 11:21 pm
Where are you doing your reporting? If you're doing it in Excel or PowerBI, use DAX, not T-SQL to calculate it.
September 20, 2022 at 10:43 pm
Let me rephrase my question... (Ask the wrong question, get a useless answer! LOL)
If the users are going do their own analyses with the data, then I would go the...
September 5, 2022 at 1:14 am
Viewing 15 posts - 271 through 285 (of 3,479 total)