Posts by rafB • 79 points
10 posts
-
0
votes2
answers100
viewsA: Select with reference in several tables
Below follows the proposed solution: SELECT e.*, (SELECT SUM(p.qtdpedido) FROM pedido p WHERE p.codigo = e.codigo) as qtdpedido, (SELECT tipo FROM produtos m WHERE m.codigo = e.codigo) as tipo FROM…
-
0
votes2
answers100
viewsQ: Select with reference in several tables
I have three tables: PRODUTOS, PEDIDO and ESTOQUE, and I want to list all the stock by order and by products, as shown below: products codigo tipo medida 3020 | unico | 3 3021 | unico | 5 3022 |…
-
0
votes1
answer296
viewsQ: Open pdf by URL and Inputstream Pdfview
I would like the user to enter the product code (at activity_main.xml) and click the button. The screen changes (view_pdf.xml), would make a PDF download (AnsyTask) and would open on PDFView for…
-
0
votes1
answer52
viewsQ: SELECT similar to "INNER JOIN" cell by cell of the record?
I have little knowledge about SQL and would like to know if it is possible to make a SELECT in the same record (row), and for each cell value bring the corresponding record of a second table.…
-
0
votes1
answer216
views -
0
votes3
answers422
viewsA: Allow only integers in a Jtable column
Good morning. As commented Articuno, I had to change to not allow text or return zero, although it is very useful your suggestion. Thanks for the suggestions. Just to finish I’ll put the final chunk…
-
0
votes3
answers422
viewsQ: Allow only integers in a Jtable column
Below I have a model of Jtable. There is only one editable column for number (seconds). How to validate to accept only integers, and in case the user enters anything else except integer, return…
-
5
votes2
answers2991
views -
0
votes1
answer61
viewsQ: Search set of records by date
I am currently creating a Java/Mysql Desktop program. When inserting into the bank, the table is very simple: id - dataInserido - códigoProduto - qtd I would like, through an SQL, to group in…
-
1
votes1
answer765
viewsQ: How to resize the application with the monitor?
I have an app that opens a JFrame, having at the top a JMenuBar. Until I call an item from Menubar one JTabbedPane, is hidden and as soon as a menu item is chosen, a Tabbed with jPanel inside opens.…