How to create a table with days column in react js? - reactjs

I create one attendance management system right now. I stuck in someplace like I need to display all employee attendance report at a single table in that table I need to display name, days, and total hour of the month columns. I try some ways to achieve to create the day's column but I am failed to find a proper way to achieve this table so please help me how can I create this table.
i want the final output like this :-

Related

Measure that shows the oldest product in the table - DAX

DAX is still a little bit confusing and new for me and that's why I'm looking for your help.
I have a very simple table that shows the products that are in the production line. It contains 3 columns: One is for the product name, the other one contains the date in which the product went to the production line and the last one, the amound.
All I want is to show in a dashboard in Power BI the first product that still is in the production line. In another words, I want a measure that calculate the oldest date in my table and return the following product (or products ) related to that date.
One solution is to show a table sorted by the date but it is not really what I'm looking for.
Thanks in advance

Better way to display table data in react

I am working on my personal project where i came across one functionality where I might need to:
Display Json data into table form.
User can select specific date range and table should display data on selected date.
I have the following design to consider:
Based on Research I found:
1) I would use react-daterange to place top left date range picker
2) To display table I found react-bootstrap-table2 would be a reasonable solution to display Json data.
Here I have some solution in my mind, but I am asking if someone have better suggestion for this table view.
The only tricky part i Found is to update table column header based on date range selection.
I would like to Thank you in advance for your suggestions.

MS SQL Server, arrays, looping, and inserting qualified data into a table

I've searched around for answer and I'm not sure how best to frame the question since I'm rather new to SQL Server.
Here's what I got going on: I get a weekly report detailing the products that have been sold and the quantity of each. This data needs to go into a yearly totals table. In this table the first column is the product_id and the next 52 columns are week numbers, 1-52.
There's a JOIN that runs on the product_id of both the weekly and yearly tables. That finds the proper row and column to put the weekly quantity data for that product.
Here's where I'm not sure what to do. In 2019 there are no product_id in that column. So there's nothing to JOIN on. Those product_id need to be added weekly if they aren't there. I need to take the weekly report of product_id and quantity and check each product_id to see if it's in the yearly table. If not I need to add it.
If I had it my way I'd create an array of the product_id numbers from the weekly data and loop through each one creating a new record in the yearly table for any product_id that is not already there. I don't know how best to do that in SSMS.
I've searched around and have found different strategies for this. Nothing strikes me as being a perfect solution. There's creating a #temp table variable, a UNION using exclude to get just those that aren't in the table, and a WHILE loop. Any suggestions would be helpful.
I ended up using a MERGE to solve this. I create a table WeeklyParts to dump the weekly data into. Then I do a MERGE with the yearly table inserting only those where the is no match. Works well.
-- Merge the PartNo's so that only unique ones are added to the yearly table
MERGE INTO dbo.WeeklySales2018
USING dbo.WeeklyParts
ON (dbo.WeeklySales2018.PartNo = dbo.WeeklyParts.PartNo)
WHEN NOT MATCHED THEN
INSERT (PartNo) VALUES (dbo.WeeklyParts.PartNo);

Access 2010 Database - Count number of instances

I'm a complete Access noob and I'm creating a database to keep track of orders shipped for work. I've got two tables in the database, one keeping track of the units shipped and the other keeping track of each purchase order and how many more items until that order can be closed. What I want to do is, basically, like a COUNTIF function from Excel on the entries from Table A and transfer to Table B. An example:
Table A has:
PO123
PO123
PO234
PO123
What I want Table 2 to do is count the number of instances of each PO and display the count in a field, like so:
Table B:
Row 1 Field 1: PO123
Row 1 Field 2: 3
Row 2 Field 1: PO234
Row 2 Field 2: 1
Anyone have any ideas? Any help is greatly appreciated.
You didn't say what the name of the field was, so I'm going to assume it's POTYPE. You need to create a query in Access, and go to the SQL view. Then you can do a query like
Select POTYPE, Count(POTYPE) From TableA Group By POTYPE

Access Database Design of Month/Year for Budget Data

I'm working on creating a database in Access for input of budget requests. What I want to do is create a form to allow users to input monthly budget forecast amounts that would be formatted like:
projectname ---month1amount --- month2amount --- month3amount ... for 12 months, then possibly yearly after that
The problem I have is that I don't know how to do this with my current table structure for the monthly information. It seems like a bad idea to create a table with hundreds of fields for each period, but that is the only way I can think of to input this in a horizontal manner.
The main table looks like
tbl_Project
project_id
description
budget_group
phys_location
expected_start <- Date
expected_end <- Date
The monthly table looks like
tbl_monthly
project_id
monthly_id
period(yyyymm)
budget_amount
If you use that design, you won't be able to use the databinding in access. Leave your form unbound, and then in the OnLoad event, query your tbl_monthly table to get all the records that should be displayed on the form. Loop through them and set the values of the fields. You will then have to run multiple update statements when it is time the save the changes. You will also need to implement your own controls to select which project you are editing.

Resources