How can I delete all lines from a table with codeigniter. Just a line I know, just specify the id from this line, but what about all lines at once?
Thanks
$this->db->empty_table('my_table');
Put it in your model and don't give any where before that.
Related
I have a table called "Propostas" where have all comercials propouses. I wanto to summarize it excluding the lines where two conditions are attempted.
I Tried:
SUMMARIZE(FILTER('Propostas',
AND(Condition1, Condition2)),
'Propostas'[Colum1],
'Propostas'[Colum2],
'Propostas'[Colum3],
'Propostas'[Colum4],
'Propostas'[Colum5])
But it is bringing juts the lines which I do not want !!
Somebody could help me?
I have one table that has many fields,
Is it possible to count how many fields that filled?
I tried count() but seems doesnt work correctly, it only count the rows of the table
The purpose is i want to take the percentage of each student's completed task
This is the view from the page
This is the table
I think your table structure is messy.
why not, setup a one to many relation instead of doing that.
https://laravel.com/docs/8.x/eloquent-relationships#one-to-many-inverse
I would also suggest you use increment, every new task completed you increment the value. Please refer to this https://laravel.com/docs/8.x/queries.
I am trying to convert the row of a PDF table in a column using UniPDF Go Library, I have tried the example they are mentioned at https://github.com/unidoc/unipdf-examples/blob/master/tables/pdf_tables_row_wrap.go but I am not able to modify the document as required.
Any help would be appreciated.
Not sure if I understand this correctly, but I am assuming you have input data that you want to display in a single column.
To achieve this, you can create a single-cell column:
https://github.com/unidoc/unipdf-examples/blob/fe269eb0efffed8e199c82cb7b7b4a38859b35d7/tables/pdf_tables_simple.go#L98
with
table := c.NewTable(1)
I have created a play for this: https://play.unidoc.io/p/3421387bcde00a52
see also
https://apidocs.unidoc.io/unipdf/v3.20.0/github.com/unidoc/unipdf/v3/creator/#Creator.NewTable
I'm attempting to filter one column from another and the formula worked at first. Then I cleared the data and tried to reselect and now it doesn't work. What's the problem?
=FILTER(A2:A100,A2:A100=C2:C100)
you kinda need this:
=FILTER(A2:A, NOT(COUNTIF(E2:E, A2:A)))
Following is the data model of the dashboard I am facing problem in:
http://blob:http://stackoverflow.com/f3e40cfe-e009-4d03-bcf5-b7b4305c18c4
Now, what i want to achieve is that in Case there is a filed named Manufacturing_Date. And in MWODefetcs there is a field named Defect_Date. What i want is that when ever a record is selected from a table containing cases from Case corresponding records are shown in another table based on the exact match of Manufacturing_Date=Defect_Date.
As simple as it sounds, i can not seem to accomplish it. I have tried the following expressions to no avail:
Count({<[Defect_Date_text]=p([Manu_text]),FaultID=,DEFECT_CODE=>}MFG_BARCODE_NUM)
sum({$<Defect_Date ={"=$(Manufacturing_Date__c)"}>}Defect_Date)
Do the 2 tables need to be directly linked. Is it the intermediary iFaults table that is preventing me to accomplish it?
Please help.
you should use the P() set expression like this:
sum({$<Defect_Date =P(Manufacturing_Date__c) >}Defect_Date)