SQL Server - Select [closed] - sql

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Please, how do I SELECT, to get the result column?
columns

SELECT machine, software
FROM ms_tbl
INNER JOIN machine_tbl
ON machine_tbl.machine_id = ms_tbl.machine_id
INNER JOIN software_tbl
ON software_tbl.software_id = ms_tbl.software_id;

Related

SQL Query to get date [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 months ago.
Improve this question
How can I change this for TODAY? I'm making #Hist_date as date however it needs to be for today.
I have tried GETDATE abd I think I'm coding it wrong
(#HIST_DATE DATE)
use select.
declare #HIST_DATE date
select #HIST_DATE = GETDATE()

How to compare data in SQL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have an application which is taking data from questionnaires users are completing on a website and inputting this into a SQL Lite database.
I'm using Django and would like to display data of users who match closest by selecting similar answers.
How could this be done?
You can add multiple join conditions like this
SELECT *
FROM <table>
INNER JOIN <same table different name>
ON (condition1 OR condition2 OR condition3)

Oracle Query not Working [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
oracle query is not working. Please specify what is wrong in this query?
(select hacker_id,challenge_id, max(score) as soc
from submissions
group by hacker_id,challenge_id
having max(score)>0) t2;
Please read #OldProgrammer comments. Anyway, I think this should work for you
select hacker_id,challenge_id, max(score) as soc
from submissions
group by hacker_id,challenge_id
having max(score)>0;

SQL code does not work [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
How can i write a code that i want to choose name and adress of a customer which customer_id is bigger than him. Thank you very much.
select c.name,a.adress,a.postcode_id from customer c left join Adress a on c.customer_id=a.customer_id where c.customer_id>11
SELECT cs.name,ad.adress
FROM Customer cs, Adress ad
WHERE cs.customer_id=ad.customer_id
AND cs.customer_id>11;

How to delete all data > 70 characters in a column [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Can you help me to delete all characters > 70 in a "Title" column in dbo.tabs with a SQL script?
update dbo.Tabs
set Title = substring(Title,1,70);