Hello,
Im using wxGrid which has 3 columns. I would like cursor to be
differen (Hand) when mous is over cells from 2 and 3 column. How can I
do that ?
Thanks for help
I have a 'Customer' table with 'FirstName' and 'LastName' columns. I have to execute a search on the 'Customer' table after 'FirstName', 'LastName' and 'FirstName + LastName' depending on a TextBox text. What's the besty way/query to implement this using NHibernate or SQL query?
i have a very simple report that is generated from just one table. one of the columns in the table is a date.
i need to be able to allow the user of the report to enter a range of dates and display data only between those dates.
how do i do this?
My test page is processed if believe to trace in 46 ms, while 11 of them I am doing this
20:53:06.111597 system.db.CDbConnection Opening DB connection
20:53:06.118046 system.db.CDbCommand Querying SQL: SHOW COLUMNS FROM `questions`
20:53:06.122476 system.db.CDbCommand Querying SQL: SHOW CREATE TABLE `questions`
Is this obligatory?
I am really confused, I want to create one list that holds 2 Images and 2 labels as follows.
+----------------------+ ROW1
|Image1 Image2 Lebel1 |
| Lebel2 |
+----------------------+ ROW2
|Image1 Image2 Lebel1 |
| Lebel2 |
+----------------------+
But i don't want it in a table/columns it should be simple selectable rows without any borders.
Which widget i should use for this and how?
Thanks,
PP.
I have two tables. First with points, and second with polygons. I need to find out which points are in required polygon according to the attribute gid.
Using query: SELECT table1.* FROM table1, table2 WHERE table2.gid=1 AND ST_Contains(table2.geom2, table1.geom1);
What I get is empty table (only columns without data)...
Tnx
I have a grid with 2 columns, a listbox in column 0 and a number of other controls in the a secondary grid in the main grids column 1.
I want this controls only to be enabled (or perhaps visible) if an items is selected in the listbox through binding. I tried on a combo box:
IsEnabled="{Binding myList.SelectedIndex}"
But that does not seem to work.
Am I missing something? Should something like this work?
thanks
hi
How can I have a combobox with multiple fields of its data source as its display member without adding additional columns to its data source?
I mean I wanna to have a combobox with displaymember like "ID" + "-" "Name" .
1 - Black
2 - White
3 - Red
I DO NOT want to add additional column to its data source.
Thank you
I want to retrieve all ids within a certain timespan. The timestamps however,
are stored in a different table:
Table A has column my_id
Table B has columns my_id, timestamp
I would want something like
SELECT
id,
time
FROM
(SELECT my_id AS id FROM A) q1,
(SELECT timestamp AS time FROM B WHERE my_id = id) q2
;
But how can I get the value of id within a different subquery? Is there
an elegant solution for this problem?
Hello Everybody,
I've got a question regarding a SQL-select-query:
The table contains several columns, one of which is an Integer-column called "size" - the task I'm trying to perform is query the table for the sum of all rows (their values), or to be more exact get a artifical column in my ResultSet called "overallSize" which contains the sum of all "size"-values in the table. Preferable it would be possible to use a WHERE-clause to add only certain values ("WHERE bla = 5" or something similar).
The DB-engine is HSQLDB (HyperSQL), which is compliant to SQL2008.
Thank you in advance :)
i am here to ask for help again, i created one database for all activities,
the problem i have is that the insertion in every activity comes in with new row, but that's
not what i want, what i am looking for is in the same row in each activity insert the columns
that contains. i already looked for solution here, they are speaking about static reference
but i don't know how to do it! so, is there any ideas ?
static DBAdapter db = new DBAdapter();
Hello Friends,
I have a jquery grid,, with columns 5..but my column name is too large so defined somethign like this in my jquery grid..
Informatoin about <br/> customers bioData
In my jquery column I am seeing Information about I am not able to see Customers BioData..
how to set the header height?
thanks
I've to import a file from an external source to a postgresql table.
I tried to do it with \copy from , but I keep getting errors (additional columns) in the middle of the file.
Is there a way to tell postgresql to ignore lines containing errors during a "\copy from" ?
Thanks
I'm working with a CMS system where I cannot control database column names. And I've got two related tables:
Table: content
+------------+----------+----------+----------+----------+
| content_id | column_1 | column_2 | column_3 | column_4 |
+------------+----------+----------+----------+----------+
| 1 | stuff | junk | text | info |
| 2 | trash | blah | what | bio |
+------------+----------+----------+----------+----------+
Table: column_names
+------------+-------------+
| column_id | column_name |
+------------+-------------+
| 1 | good_text |
| 2 | bad_text |
| 3 | blue_text |
| 4 | red_text |
+------------+-------------+
What I'd like to do here is select from the first table, but select the columns AS the column_name from the second table. So my result would look like:
+------------+-----------+----------+-----------+----------+
| content_id | good_text | bad_text | blue_text | red_text |
+------------+-----------+----------+-----------+----------+
| 1 | stuff | junk | text | info |
| 2 | trash | blah | what | bio |
+------------+-----------+----------+-----------+----------+
If I have an oracle query like below:
SELECT * FROM table_a where A = "1", B = "2", C = "3"
for this query to pickup one of the indexes of table_a...does the index need to be on all 3 of these columns?
What I am asking is:
What if Index is on A, B, C, D?
What if Index is on B, C?
Will the index only be picked when
it is on A, B, C?
I have a table with the following columns and data
Category Item Price Tax
A I1 1.00 .01
A I2 2.22 .02
B I3 3.33 0.3
I want to group on Category and have the details below such as:
Category/Item Price Tax
A
I1 1.00 .01
I2 2.22 .02
B
I3 3.33 .03
I want the category to have its own row then the detail rows below with the item in the same column as the Category.
The output that is desired is:
Category - Item | Price | Tax
A | |
I1 | 1.00 | .01
I2 | 2.22 | .02
B | |
I3 | 3.33 | .03
HI guys,
My litle problem goes like this :
I have this columns : PHONE_NR , TIME ( time field ), Meaning the calling telephone number and call duration. I need to group phone nr and sum the minutes. Filds looks like this :
nr time
726028xxx 00:07:07
735560css 00:07:37
726028xxx 00:07:55
I have a list of sales people and a list of their sale revenues in two separate columns. How do I use an advanced filter or other sorting means to find the max of the sale revenue column and then have the formula output be the corresponding sales person?
Write a JavaScript that accepts a number from the user using the “prompt” function. Then it draws a table in the HTML document that has the user specified number of rows and columns.
In each table data, it displays the result of the math operation (row raised to the power of column). For example, if the user enters the number 3, the JavaScript should draw the following table:
1 1 1
2 4 8
3 9 27
hi,
i have dataset(dataset name dsEmp) with an 25 columns , here i need to add an new column with columname as "EndDate" of data type as string
now i need to import all the data from column18 whose datatype is Datetime to the newely created datacolumn "EndDate" once we import all the data from the column 18 to the newcolumn "EndDate" ,
we should remove the column18
hope my Question is clear,
can any one please help me this.
A matrix is diagonally dominant (by rows) if its value at the diagonal is greater then the sum of all absolute value in that row. Same goes for columns, only the other way around.
Is there a function in matlab for chekcing this ? (I could write a simple loop, but I'm trying to quit those).
I have a microarray data of 38 row and 7130 columns. i am teying to read the data but keeping having the above error.
I debugged and found when i read the data, i have a 1x7129 instead of a 38x7130. I don't know why. my 7130th column contains letters while the rest of the data are numbers. Any idea why this is happening?
I am ok with mysql. when i use desc tablename i can see columns with MUL meaning it is a foreign key. Now my question is, how do i find out exactly what table and column that column is pointing to.
I want to make a trigger that will prevent the insertion if the birthdate (one of the columns) is in the future. I have this:
CREATE TRIGGER foo
BEFORE INSERT ON table
FOR EACH ROW
BEGIN
IF NEW.birthdate > CURRENT_DATE()
THEN
???mystery???
END IF;
END;
What goes in the mystery part?