SQL Query Select All fields with formatting

SQL Query Select All fields with formatting

I need to write SQL query to select all the fields from table1 with formatting few fields , Table 2 with formatting few fields.

How can I do that ?

For instance the field swith date and time will be formatted with the function UTCBigintToUTCTime"(startTime)

size in Bytes will be formated (will be divided by 1000) to get Kilobytes

the rest of the fields will not be formatted with the select query

Thank you
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

No way around it, you will have to list all the fields in your select list

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bill PrewIT / Software Engineering ConsultantCommented:
Depending on the tool you are using (SSMS, TOAD, SQL Developer, ...) most of these have the ability to generate a query from a table, so they can build the query and put in all the column names, and then you just adjust the formatting on the select few.

jskfanAuthor Commented:
Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.