close
Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
Filter by
Sorted by
Tagged with
Filter by Employee ID
Score of 2
1 answer
174 views

I am trying to figure out how to write a query that can show me if a member meets defined metrics from our metrics table. There is a table that holds member survey answers and we have business ...
Score of -3
0 answers
59 views

I’m currently working on a Microsoft Dynamics NAV 2016 to NAV 2016 data migration project, and I’m facing a challenge where I’d really appreciate some guidance from people who have handled similar ...
Advice
0 votes
1 replies
94 views

Does SQL Server 2016 support database sharding as a native feature? If so, what is the standard method for implementing it? If not, is table partitioning the recommended alternative for managing data ...
Score of -3
0 answers
73 views

I have a formula that I am trying to use in SQL and the value I get is different from when used in Excel. Can you see if the SQL needs to be tweaked to get the correct value? Excel formula - for test ...
Advice
0 votes
5 replies
116 views

I'm getting an error saying Service.Name does not exist but I can clearly see it in my table. Query SELECT TY.Name ,SER.Name ,PAK.[1_Year] ,PAK.[3_Year] ,PAK.[5_Year] FROM [...
Score of 0
1 answer
140 views

The first table I have stores fixed prices on product codes SellPriceRule and I show the query I have to get the list I want. The problem is for certain customers - using 1 as an example 7000192 - the ...
Score of 0
1 answer
179 views

I have the following query: SELECT MAX(F.Surname + ', ' + F.First_Name) AS Female, ISNULL(MAX(M.Surname + ', ' + M.First_Name),'') AS Male, MAX(CP.Comp_Date) AS Comp_Date, H....
Score of 0
0 answers
119 views

We handle data migrations using scheduled SQL Server jobs. A month ago, I got a new requirement to migrate the last_add2, batch_no_all, and box_num2 values from a remote database. I updated the stored ...
Advice
0 votes
2 replies
78 views

My company has a customer that holds a large amount of data in the Oracle NetSuite product. This uses a very complicated data model. For fast reporting of the data, my company has provided our ...
Advice
1 vote
4 replies
182 views

In SQL Server, I have table myTable with fields patientID, orderID, and orderDesc. patients can have multiple orders with individually variable descriptions. I’m requested to write a query to select ...
Advice
0 votes
1 replies
82 views

I am working on a project where I would need to query from MSSQL server. I am using Python and pyodbc for the work, and I want to use timeout for QUERY EXECUTION. But there is no direct way. Is there ...
Score of -2
0 answers
128 views

How to automatically create DSN for connection to SQL Server with supplied username and password? The following code I have used worked if I am not supplying username and password, but I need the one ...
Score of 2
1 answer
136 views

DDL: IF OBJECT_ID('tempdb..#Tab2And3Pop') is not null DROP TABLE #Tab2And3Pop; SELECT CAST(115704 AS INT) AS ConflictNoticeID , CAST(16003573 AS INT) AS MerchantID , CAST(13 AS ...
Advice
0 votes
8 replies
92 views

Is there an index hint in T-SQL that says "do not use any nonclustered index that would require a key lookup"? Apart from that one restriction, I want to let the query planner have a free ...
Best practices
0 votes
1 replies
89 views

I'm working on an old SQL Server database where the main table has columns with generic names like MSTFLG01, MSTFLG02, all the way up to MSTFLG67. The actual meaning of each column is hidden inside ...

15 30 50 per page
1
2 3 4 5
22422