How to debug in sql(Oracle) [closed] - sql

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I am writing a long SQL query and I'm getting incorrect output fields. How do I debug this query?

There is no right answer to this question. I think deep down you know that.
When I have something complicated break it down to uncomplicated pieces. Once you are comfortable with these pieces then one by one start to put this complicated thing back together again. The main point is keep breaking complicated things into more and more simple things. I am not embarrassed to say I have broken things down to select sysdate from dual and then start to build back up!
Good Luck.

Related

Question about a SQL question (for reference on Monday) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed yesterday.
Improve this question
On Monday I have big SQL exam for a job. (Have zero idea what they'll give me but as their system is still early DB rebuild it'll probably ask Q's about referencing disparate tables/info.)
My Q is: Come Monday, if I get some proc statements I can't figure out/make sense of is THIS a good please to come ask a question about a SQL statement? (It will be time critical I suspect.) OR, is there another "quick question about a proc stmt" website that would be better?
(FYI: Most of the role is finance-centric and my central wheelhouse, but I will get a SQL exam and would like to hedge my bet - to get back employed PLEASE!)
THANKS TO ANY AND ALL!

sql server 2016 basic select issue [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I have basic database table with some rows. see the queries below.
first query selects a record from the database.. you see the result. that result is not the same as the other two result. yet I am retrieving the same record from the table using the different columns/methods.
correct record is the second and 3rd select queries.
PWTransferID is the primary key. PWtransfernumber is non clustered index/Unique
I am really confused and have never seen a problem like this. can anybody shed some light on this for me. almost like the database is broken some where.
Is that just a typo in the first query? Should 227 be 277?

Missing bracket frustration [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
I have a SQL WHERE clause which is two pages long. I appear to be missing a bracket. Is there a way in SQL to count the right brackets and left brackets and even determine where the problem is?
The answer may be no, but I am interested to know if it is, meaning I do not have to go through hundreds of lines of code one line at a time.
You can use an SQL pretty printer to automatically format your SQL statement. This should help you find unbalanced parenthesis.
There are many tools available for this purpose, here's an online service that I frequently use:
http://www.dpriver.com/pp/sqlformat.htm
Various other tools with SQL Server Management Studio integration can be found in this SO question:
Pretty Printer for T-SQL?
SQL will tell you when you parse or run the query what line the problem is on!

Reading an image VB.net [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
Is it possible to read a text on an image?
Why yes and why not?
My client wants me to make this but I think it's impossible, if not impossible then it'll be very hard to make.. I was trying to explain it to him but it seems like he really wants to push it.
:/
EDIT: I don't understand why you downvoted this I was just asking a yes or no question here. :)) but well it's ok I want to hear what do you guys think if this is possible in vb.net
Use something like PDFSharp to get the images, then perform OCR on them with for ex. Tersseract.
Problem is where should that text be used? In the PDF? If yes it might be possible to include a textfield above the image with the text in the PDF, using PDFSharp too.

Did I use trigger properly? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a program in C#. I have no question about the C# code but there is something that bothers me. I have been using a trigger in some big transactions in my system. Is it really advisable or good practice to use a trigger in transaction? I have been researching and found that I should use triggers only in audit trails. But I have no problems when using triggers. I'm asking this question because I really want to know your opinion so that in the future if it's not advisable then I can avoid using the trigger in a transaction.
Major drawbacks of using triggers are:
1- Making the whole process slow in large number of transactions
2- Lack/difficulty of control especially for checking the result of the action done by trigger
3- Making your system more difficult to maintain
4- Injection of problems regarding concurrency