After each insert you got IF clause:
if (@SlotsBalance> 0)
if (@TableBalance> 0)
etc...
I couldn't get the idea behind these?
User Profile
Collapse
-
Hi pal,
I believe till now you have learned much about SQL, and you already know now that the code provided here is whole wrong.
Here are some tips about it:
- Functions can return only scalar values, or tables
- Dynamic Queries cannot be used in functions. Use Stored Procs if you need them.
- Variable assigning is done via (simpliest) SET command in SQL
- When using text strings, always put them inside single cuotes (')
Leave a comment:
No activity results to display
Show More
Leave a comment: