M
M
Max2017-04-24 23:43:25
SQL
Max, 2017-04-24 23:43:25

How to get columns by SQL query?

Hello everybody. Need help how to get specific columns for a query (on a specific date)? For example, I want to get all the columns (time) where the value is zero (typically free time) for this table. To whom it is not difficult to pay attention, thank you.17ddff521af44f22838afae5b3af0461.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2017-04-25
@babymills

For example, I want to get all columns (time) where the value is zero (typically free time) for this table

if I understand the task correctly, and you want to conditionally form a list of columns dynamically (depending on the value of the column) - then the answer to your question is NO. In general, you have some strange database structure - it would be better if you reviewed it

D
Denis Zagaevsky, 2017-04-25
@zagayevskiy

where field=value
https://www.w3schools.com/sql/sql_where.asp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question