rows

Remove Duplicate Rows Leaving Oldest Row Only?

I have a table of data and there are many duplicate entries from user submissions. I want to delete all duplicates rows based on the field subscriberEmail, leaving only the original submission. In other words, I want to search for all duplicate emails, and delete those rows, leaving only the original. How can I do this without swappin...

MySQL retireive rows in sorted order on a very large table

Hi, I have a MyISAM table T with the following schema: f1 (integer unsigned not null) f2 (integer unsigned not null) This table has an index on f2 and it currently contains 320 million rows, and is expected to grow at the rate of about 200,000 rows once a week. I perform the following query on this table: SELECT DISTINCT T.f1 FROM T ...

how to copy rows from NSTableView

Hi All, I have one NSTableView, Which displays just the row of numbers. I just want to copy those numbers using (cmd+copy) or right click copy. How can I achieve this feature in NSTableViews. ...

counting rows before processing with a cursor tsql

hi there I have a SQL Server sp using a cursor thus: DECLARE TestCursor CURSOR FOR SELECT tblHSOutcomes.strOutcomeName, tblHSData.fkHSTest FROM tblHSData INNER JOIN tblHSOutcomes ON tblHSData.fkOutcome = tblHSOutcomes.uidOutcome INNER JOIN tblHSTests ON tblHSData.fkHSTest = tblHSTests....

Oracle SQL returns rows in arbitrary fashion when no "order by" clause is used.

Maybe someone can explain this to me, but when querying a data table from Oracle, where multiple records exist for a key (say a customer ID), the record that appears first for that customer can vary if there is no implicit "order by" statement enforcing the order by say an alternate field such as a transaction type. So running the same ...

WPF Datagrid / Datatable: Large number of rows

I have a Datagrid connected to Datatable, which needs to load a very large amount of rows. To speed things up, I load 10% of the rows, and display the form. Most of the time the user only needs those 10% (they are the most recent entries). In a background thread I load the remaining 90% of the rows into another datatable (SecondData). ...

Wpf DataGrid - Adding new rows only when I want them

I have a datagrid with two columns a and b. Column b represents a percentage. I want to have a single editable row at the start, and have them fill in column a and b. In the case that column b is less than 100%, I want to add a new editable row. I want to always add a new row when the total percentage is less than 100%. Any ideas on h...

Multithreading with the WPF DataGrid?

I currently have a WPF DataGrid binded to a DataSet via the DataGrid's ItemsSource property in my program. With my current setup, I am having load-time issues that cause the GUI to lock up. Is it possible to multithread the loading of the DataGrid so that it will populate the rows as they are loaded instead of loading all the rows and th...

how do i get images to display in a rows like this using php and css?

i wanted to know how can i display the images like the on in the picture: i know that i have to retrive the images using a while loop, but then displaying them like this is the difficult bit, thanks!! :)) ...

Powerpoint Table, rows and cells...

Hello, I have this table in PPT and I go to check cells dimensions in this way: foreach (Row r in table.Rows) { //loop rows in table foreach (Cell c in r.Cells) { //loop cells in row String cellText = c.Shape.TextFrame.TextRange.Text; float cellWidth = c.Shape.Width; Cons...

How to blend CSS classes for different results

I have a table where the even rows are given the class "even" and the odd rows "odd". But I also want to give the rows classes like "complete" or "problem" that give them other colors, but I still want the hue of the colors to be dark or light depending on if they're even or odd. Examples <table> <tr class="even problem"> <tr c...

Updating Table when inserting/deleting rows.

Hi, I have a singleton class which is used to display data across various views. There is one TableView which is used to delete/insert rows. I have a button that changes between Edit/Done to allow Editing. 'streams is a variable within the Singleton class' - (void)setEditing:(BOOL)flag animated:(BOOL)animated{ int count =...

deleting rows in numpy array

I have an array that might look like this: ANOVAInputMatrixValuesArray = [[ 0.96488889, 0.73641667, 0.67521429, 0.592875, 0.53172222], [ 0.78008333, 0.5938125, 0.481, 0.39883333, 0.]] Notice that one of the rows has a zero value at the end. I want to delete any row that contains a zero, while keeping any row that contains non-zero v...

Numpy - add row to array

Hi, How does one add rows to a numpy array? I have an array A: A = array([[0, 1, 2], [0, 2, 0]]) I wish to add rows to this array from another array X if the first element of each row in X meets a specific condition. Numpy arrays do not have a method 'append' like that of lists, or so it seems. If A and X were lists I would merely...

PHP: Display rows value same with all union limit

<? // Connect database include("cat-config.php"); // Get all records in all columns from table and put it in $result. $result=mysql_query(" (select * from stok_lukisan where `Ukuran` LIKE '20x25' AND `Kategori` LIKE '1' ORDER BY `Kode` ASC limit 3) union all (select * from stok_lukisan where `Ukuran` LIKE '3...

Select all rows from SQL based upon existence of multiple rows (sequence numbers)

Let's say I have table data similar to the following: 123456 John Doe 1 Green 2001 234567 Jane Doe 1 Yellow 2001 234567 Jane Doe 2 Red 2001 345678 Jim Doe 1 Red 2001 What I am attempting to do is only isolate the records for Jane Doe based upon the fact that she has more than one row in this table. (More that one seque...

How do I divide the rows of a matrix by different values in MATLAB (array division)

Lets said I have the matrix M = ones(3); and I want to divide each row by a different number, e.g., C = [1;2;3];. 1 1 1 -divide_by-> 1 1 1 1 1 1 1 -divide_by-> 2 = 0.5 0.5 0.5 1 1 1 -divide_by-> 3 0.3 0.3 0.3 How can I do this without using loops? ...

DataGridView Row Height Autosize

Hi i am using the DataGridView in the C#.Net 3.5 and i want the height of the all row is set to Autosize.. i have defined the WrapMode = true but not getting the Height Autosize So plz guide me Thanks ...

Combining Rows in Javascript

Hi, I'm looking for some help on the javascript angle of this problem. I have a table that goes like... <table> <tbody> <tr> (Row 1) <td colspan="3"> <p>This Says Something</p> </td> </tr> <tr> (Row 1a) <td> <select option> </td> </tr> <tr> (Row 2) <td colspan="3"> <p>This Says Something</p> </...

How can one dynamically modify row and column definitions of a WPF grid?

I have two dimensional data with varying number of rows and columns and must display it to the user for editing. The format of the data itself is essentially described by a list of row and column descriptors with a header text for each row or column. I derived a control from Grid that has two properties for the row and column descriptor...