I want to select multiple table rows the same time. table row 2 and table row 3 they both have the same id, is there a way to select the two table rows at the same time? currently I am trying to approach using xpath in-order to do that I need to join the two xpath but no luck so far.
here is my sample:
find(:xpath, ".//*[#id='review']/tr[2]/td[2]")
find(:xpath, ".//*[#id='review']/tr[3]/td[2]")
so I just want to select the two table rows (tr[2]and tr[3]) then they both highlighted(selected)
Related
I currently have 2 Google Sheets with their own respective tables, Table1 and Table2.
Table1 is located in the example below from Column A to Column C. This was Query 1.
Table2 is located from E to G. This was Query 2.
My desired outcome is Table3 located in Column I to K.
Both of these table have been imported from separate sheets into my newly created sheet using 2 different Queries.
Here is an example of the code that I used:
=Query(IMPORTRANGE("url_example1", "Sheet1!A1:Z"), "select Col1, Col2, Col7", 1)
And another:
=Query(IMPORTRANGE("url_example2", "Sheet2!A1:Z"), "select Col1, Col2, Col7", 1)
Is there a way to combine both tables chronologically with 1 Query?
If not, what is the best way to accomplish this goal? Any help would be greatly appreciated.
Again my hope is to combine 2 Google Sheets Query tables into one table and have the data sorted chronologically. Thanks for your time.
use:
=QUERY({IMPORTRANGE("url_example1", "Sheet1!A1:Z");
IMPORTRANGE("url_example2", "Sheet1!A2:Z")},
"select Col1,Col2,Col7
order by Col1 asc", 1)
I am looking for some help on below issue:
I am getting column names from the XML column in one query, and I wanted to pass those column names in another query.
below is the sample structure of my query:
with temp1 as (
select x
from table1)
select (select distinct x from temp1) from table2
when I have given like above it is displaying column name text, not data from another table, can someone please help me to solve the issue.
Thank you.
I have a table in SSRS report. And I need to display only the last row of the table. ie,
How can I do this?
How do I select last 5 rows in a table without sorting? see this post, and change to "-1"
We can select the last row of the table by using Last() method.
For eg. if we have a table called Test then,
Last(Fields!Test.value);
I need to cancel some orders, and then insert a row into another table, both based on the same subquery.
There is a very small chance that the subquery will return different rows between the time that the 1st and 2nd DMLs are issued.
But is there a proper way to do this such the orders updated are the same orders that are inserted into the cancellations table?
I am using Oracle and JDBC. Thanks.
update orders
set status = 'cancel'
where order_number in (select order_number from some_other_table_where...)
insert into order_cancellations
select order_number select order_number from some_other_table_where...
Here are five approaches that spring to mind:
(1) Put a trigger on the orders table so whenever the status is set to 'cancel', a row is inserted into order_cancellations.
(2) Use the returning clause in insert. Do the insert first and use this information for the update.
(3) Add a creation date to order_cancellations and do this insert first. Then update orders using the just-inserted rows
(4) Wrap the two statements in a transaction (this might require locking the other tables).
(5) Load the subquery data into a temporary table and use that table for both operations.
I also wonder if you could eliminate the need for the cancellations table just by having a cancellation_date column in the orders table.
Everywhere I look I can find how to update a table from data in another table but I am not looking for that. I have two tables TABLE1 and TABLE2. TABLE1 has a column PULLDATE and a column JOBNMBR. TABLE2 has a column JOBNMBR and a column PROJECT. The two tables link at the JOBNMBR column. I need to do a bulk update to TABLE1.PULLDATE per a project number, but that project number is stored in TABLE2.PROJECT.
Using VisualStudio 2005 and in VB code not C+, does anyone know the code (if there is any) that links the tables and allows me to update all TABLE1.PULLDATE records grouped by TABLE2.PROJECT? I will be providing the trigger to update using a textbox [TxtBox_Pulldate] and a nearby button [Button_UpdatePulldate].
Thanks a bunch
Chuck Vensel
I think I understand that you want to update Table1 given a matching column in Table2?
You write the SQL update just as you would the SELECT except replace the SELECT clause with the UPDATE clause.
UPDATE Table1
SET
[PULLDATE] = your_value
FROM
Table1
JOIN Table2
ON Table2.[JOBNMBR] = Table1.[JOBNMBR]
WHERE
Table2.[PROJECT] = your_project_ID