Skip to content

Tag: sql-server

Put value on table inside variable?

I need to put a filename that is already listed into a table. I need to put the filename to address to access the file. I already tried this: I expect @filepath will contain something like this D:romliLockAmount_out123456.txt, how I can store the filename in a table to store in a variable? Answer Seeing that …

switch case from subquery sql

Assume that I have 6 tables: Users, Customers, Providers (each user must be or customer or provider), Requests, Offers, Booking. Each customer can publish new request, and each provider can make an offer for any request, if the customer want he can make booking for one of the offer (each request may have at m…