Skip to content

SQL. Get samples of data in group query

I have a simple table with only 2 columns: | name | domain | I need a SQL query to get this data: | domain | names count | sample name 1 | …2 | …3 | …4 | …5 | So, the first part is simple, …

SQL Query how to add non existing column [closed]

Hello guys i need help im stuck dont bully me for this i know it can be easy for you but im just bad at thinking lol 😀 read few times the manual on w3school and etc but still dont understand this …

SQL Server Multiple Rows into One row

I have a table with lot of records. I provided a sample of 1 record (4 rows) Need the rows to be combined as follows How can this be achieved? Answer You can use aggregation: Note that the data you describe sounds like it comes from an aggregation query. Usually this is more easily fixed by fixing that query …