Separate values which are not delimited
SQLTeam Forum
by meera
6h ago
Master table of Diagnosis Sno Diagnosis 1 Acute diarrhoea (Gastroenteritis) 2 Acute fever 3 Acute Suppurative Otitis Media (ASOM) 4 Anaemia 5 Aphthous ulcers (Stomatitis) 6 ARTI (URI) 7 Breast abscess 8 Conjunctivitis (Purulent) 9 Conjunctivitis (Xen-purulent) 10 Dysentry 11 Dyspepsia 12 External ear furunculosis 13 Genital ulcer 14 LRTI (Pneumonia) 15 Osteoarthritis 16 Pica syndrome 17 PID 18 Post menopausal bleeding 19 Pulmonary tuberculosis 20 Pyoderma 21 Scabies 22 Tinea capitis 23 Tinea corporis 24 Tinea cruris 25 Tinea versicolor ..read more
Visit website
Finding Number of Virtual Cores Assigned to SQL Guests
SQLTeam Forum
by DBAforever
23h ago
Hi experts, We are inventorying our SL licenses. I've been asked to determine: Nbr of physical cores on each SQL Server - easy enough to do Nbr of VIRTUAL cores that are assigned to SQL Guests - can I query to get this value? Thanks for any tips. 2 posts - 2 participants Read full topic ..read more
Visit website
Basic SQL Query question
SQLTeam Forum
by smithloo
23h ago
Hello, I was given this SQL question and was hoping someone could please help me understand the query? Thank you, J SQL CONCEPT 1 Please write the result for the following query Table1 name 1. A 2. B 3. C Table2 name 1. B 2. C 3. D Select t1.name, t2.name FROM Table1 t1 INNER JOIN Table2 t2 ON t1.name = t2.name 2 posts - 2 participants Read full topic ..read more
Visit website
The Benefits of Hiring an SEO Expert for Your Business
SQLTeam Forum
by mindmingles
1d ago
(topic deleted by author) 1 post - 1 participant Read full topic ..read more
Visit website
SQL Condition by user id
SQLTeam Forum
by visitor2024
1d ago
Hi, I am looking for script query on how to group the table below: I have tried this but this is not what I want: SELECT CAST([Date] AS DATE) AS [TransactionDate] SUM([Amount]) AS [TotalCashAmount] FROM [dbo].[Payments] WHERE [Name] = 'Cash' AND [UserId] = 7 GROUP BY CAST([Date] AS DATE) ORDER BY [TransactionDate]; 4 posts - 3 participants Read full topic ..read more
Visit website
Count occurrences by time
SQLTeam Forum
by davidmatthewjames
2d ago
Good morning, I have a table that has the time a call was made, and the reference number associated with it. I would like to give each call an occurrence based on the reference number in time order. For example Desired output I hope some can help. Kind regards David 3 posts - 2 participants Read full topic ..read more
Visit website
AlwaysOn AG + Replication maintenance - two scenarios to get the job done
SQLTeam Forum
by CDN12345678
1w ago
Happy Friday! I'm hoping to get some input on two scenarios I've tested and I wanted to hear different opinions. I have two datacenters close together running MS SQL Server AlwaysOn AG in synchronous mode. Site A has two separate AG instances (one for critical transactions and one for reports) and we rely on SQL Server replication to populate data on the report AG. We are currently working to move away from replication however, that is a story for a different day. Site A also has secondary replicas for both AGs. Site B holds secondary instances for both AGs. Replication is currently working fi ..read more
Visit website
What happens in a dual LEFT OUTER join when the second join is NULL in both tables?
SQLTeam Forum
by sqlor
1w ago
Hello Sorry for such a basic question, but what will be the output of the below LEFT JOIN? I want to left outer join the first table with the second ON Col1 and Col2. My question is, if there is a Col1 match but both Col2 are NULL, will these records be joined? Col1 Col2 A 1 B C 2 D 3 Col1 Col2 A 1 B C 4 D 3 Thanks! 3 posts - 3 participants Read full topic ..read more
Visit website
How to set a variable from a table with comma?
SQLTeam Forum
by dany
1w ago
The query SELECT * FROM Facility return multiple rows. How can I set to variable @Facility like 'Facility 1, Facility 2, Facility 3'? Thanks. 2 posts - 2 participants Read full topic ..read more
Visit website
SSRS Expression IIF Zero then ... Got #Error
SQLTeam Forum
by dany
1w ago
Hello, Need some help for SSRS. The column % expression is =iif(sum(Fields!ColumnA.Value) = 0 or sum(Fields!ColumnB.Value) = 0,0,sum(Fields!ColumnB.Value) / sum(Fields!ColumnA.Value)) But I am getting #Error if ColumnA is zerro and no error if ColumnA and B had no value. Please advise what is wrong with the expression. Thanks. 2 posts - 2 participants Read full topic ..read more
Visit website

Follow SQLTeam Forum on FeedSpot

Continue with Google
Continue with Apple
OR